package com.lwc.cfdns.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Data;
import lombok.Getter;

/**
 * 访问来源枚举属性（方式二）
 *
 * @author luwc
 * @title SourceEnum
 * @description
 * @time 2023/4/25 19:09:29
 * @version: 1.0
 */
@Getter
public enum SourceEnum implements IEnum<String> {
    UNKNOWN("0", "未知"),
    ONE("1", "我向对方发面名片"),
    TWO("2", "二岁"),
    THREE("3", "三岁");

    private String value;
    @JsonFormat
    private String desc;

    SourceEnum(final String value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
